
const userModel = require('../lib/mysql.js');
/**
 * 用户列表
 */
exports.getUserInfo = async ctx => {
    let data,
        total;
    await userModel.findAllUser()
        .then(result => {
            data = result
            total = result.length
        })
    ctx.body = {
        data: data,
        total: total,
    }
}